package com.example.smithing_master.item;
/*
@Author Leonidas
@Date 2025/2/11 - 21:22
@Email zhangye99@bupt.edu.cn
*/
import com.example.smithing_master.Smithing_Master;
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
import net.fabricmc.fabric.api.itemgroup.v1.FabricItemGroupEntries;
import net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents;
import net.minecraft.item.Item;
import net.minecraft.item.ItemGroups;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.util.Identifier;


public class mod_items {
//    public static final Item Forging_Furnace =registerItems("forging_furnace", new Item(new FabricItemSettings()));
    public static final Item Smithing_Master_Icon =registerItems("smithing_master_icon", new Item(new FabricItemSettings()));
//    private static void addForgingFurnaceToItemGroup(FabricItemGroupEntries fabricItemGroupEntries){
//        fabricItemGroupEntries.add(Forging_Furnace);
//    }
    private static void addSmithingMasterIconToItemGroup(FabricItemGroupEntries fabricItemGroupEntries){
        fabricItemGroupEntries.add(Smithing_Master_Icon);
    }
    private static Item registerItems(String name,Item item){
        return Registry.register(Registries.ITEM,new Identifier(Smithing_Master.MOD_ID,name), item);
    }
    public static void registerModItems(){
//        ItemGroupEvents.modifyEntriesEvent(ItemGroups.FUNCTIONAL).register(mod_items::addForgingFurnaceToItemGroup);
        ItemGroupEvents.modifyEntriesEvent(ItemGroups.INGREDIENTS).register(mod_items::addSmithingMasterIconToItemGroup);
    }
}
